package com.wxtwxt.ruralmall.common.utils;

/**
 * @author Wxt
 * @create 2023-02-08 16:49
 */
public enum BizCodeEnum {
    UNKOWN_EXCEPTION(10000,"系统未知异常"),
    VALID_EXCEPTION(10001,"参数格式校验失败"),
    PRODUCT_UP_EXCEPTION(11000, "商品上架失败"),
    SMS_CODE_EXCEPTION(10002, "验证码获取频率太高，稍后再试"),
    SMS_SEND_EXCEPTION(10003, "发送验证码失败"),
    USERNAME_EXIST_EXCPTION(15001, "用户名已存在"),
    EMAIL_EXIST_EXCPTION(15002, "邮箱已存在"),
    USERACCOUNT_PASSWORD_ERROR(15003, "账号或密码错误");

    private Integer code;
    private String message;

    BizCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
